import java.util.Scanner;

public class DoWhileDemo08 {
    public static void main(String[] args) {
//        int i = 1;
//        int j = 2;
//        do {
//            System.out.println("hello world");
//        } while (i > j);
////
//        while (i > j) {
//            System.out.println("hello china");
//        }

        // 请输入账号和密码，如果账号密码不对，重复输入，如果对，程序停止
        Scanner scanner = new Scanner(System.in);

//        while(true){
//            System.out.println("请输入账号");
//            String account = scanner.next();
//            System.out.println("请输入密码");
//            String password = scanner.next();
//            if(account.equals("123") && password.equals("123")){
//                break;
//            }
//        }


        String account = "";
        String password = "";
        do{
            System.out.println("请输入账号");
            account = scanner.next();
            System.out.println("请输入密码");
            password = scanner.next();

        }while(!account.equals("123") || !password.equals("123"));

    }
}
